﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DataComminucation;
using ConfigurationFactory;
using Picking.Common;

namespace PickingBusiness
{
    public abstract class Configuration
    {
        public static DataRow GetCurrentUseParameters()
        {
            IParametersSetupDataAccess dataAccess = DataComminucationFactory.GetParametersSetupDataAccess();
            return dataAccess.GetInUseParameters();
        }

        public static DataTable GetConfigSetup()
        {
            IParametersSetupDataAccess dataAccess = DataComminucationFactory.GetParametersSetupDataAccess();
            return dataAccess.GetConfigSetup();
        }

        public static bool SaveConfigSetup(DataTable table)
        {
            IParametersSetupDataAccess dataAccess = DataComminucationFactory.GetParametersSetupDataAccess();
            return dataAccess.SaveConfigSetup(table);
        }

        public static WorkersAndLightsSetupModel GetWorkersAndLightsSetup()
        {
            IParametersSetupDataAccess dataAccess = DataComminucationFactory.GetParametersSetupDataAccess();
            return dataAccess.GetWorkersAndLightsSetup();
        }

        public static bool SaveWorkersAndLightsSetup(WorkersAndLightsSetupModel model)
        {
            IParametersSetupDataAccess dataAccess = DataComminucationFactory.GetParametersSetupDataAccess();
            return dataAccess.SaveWorkersAndLightsSetup(model);
        }

        public static LightAndDNoSetupModel GetLightAndDNoSetup()
        {
            IParametersSetupDataAccess dataAccess = DataComminucationFactory.GetParametersSetupDataAccess();
            return dataAccess.GetLightAndDNoSetup();
        }

        public static bool SaveLightAndDNoSetup(LightAndDNoSetupModel model)
        {
            IParametersSetupDataAccess dataAccess = DataComminucationFactory.GetParametersSetupDataAccess();
            return dataAccess.SaveLightAndDNoSetup(model);
        }

        public static SebangoAndDNoSetupModel GetSebangoAndDNoSetup()
        {
            IParametersSetupDataAccess dataAccess = DataComminucationFactory.GetParametersSetupDataAccess();
            return dataAccess.GetSebangoAndDNoSetup();
        }

        public static bool SaveSebangoAndDNoSetup(SebangoAndDNoSetupModel model)
        {
            IParametersSetupDataAccess dataAccess = DataComminucationFactory.GetParametersSetupDataAccess();
            return dataAccess.SaveSebangoAndDNoSetup(model);
        }
    }
}
